<?php
require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'wsr.inc.php';
require_once WSR_DIR . DIRECTORY_SEPARATOR . 'tests/supercompare.inc.php';
require_once WSR_DIR . 'largescalespreadingactivation.class.php';

class ActivationTest extends PHPUnit_Framework_TestCase {
	
	function test_set_prams() {
		$delta = 0.001;
		$lisa = new LargeScaleSpreadingActivation();
		$lisa->nos_internal_cycles = 3; 
		$lisa->set_load_threshold( 1 );
		$lisa->set_spread_factor( 0.35 );
		$sf = $lisa->get_spread_factor();
		$this->assertEquals( $sf, 0.35, "set_spread_factor in LargeScaleSpreadingActivation", $delta);
		$sf2 = $lisa->activation->params->spread_factor;
		$this->assertEquals( $sf2, 0.35, "set_spread_factor in Activation", $delta);
		$lisa->clear();
	}


}


?>